let admin = {
  username: 'admin',
  password: '123456'
}

var depts = [
  {
    id: 1,
    name: 'HR'
  }, {
    id: 2,
    name: 'DEV'
  }
]

let titles = [
  {
    id: 1,
    name: '职员'
  }, {
    id: 2,
    name: '经理'
  }
]

let supers = [
  {
    id: 1,
    name: 'Mary'
  }, {
    id: 2,
    name: 'Lee'
  }
]

let employees = Mock.mock({
  "list|10": [{
    "id|+1": 1,
    name: "@cname",
    "dept|1":depts,
    "title|1":titles,
    "super|1":supers,
    "status|1":["in","out"]
  }]
})


Mock.mock('http://test.org/user/login', 'get', admin)
Mock.mock('http://test.org/dept/list', 'get', depts)
Mock.mock('http://test.org/title/list', 'get', titles)
Mock.mock('http://test.org/super/list', 'get', supers)
Mock.mock('http://test.org/employee/list', 'get', employees.list)
